package com.monitor.controller;



import com.alibaba.fastjson.JSON;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;


/**
 * <p>
 * 工具类 接口
 * </p>
 *
 * @author 
 * @since 2018-12-07
 */
@RestController
@RequestMapping("/utill")
public class UtillController {

    //生成时间戳
	@RequestMapping("/getkey")
	public String getAllProvinces(String type){
	    if(type==null){
	        type="";
        }
        String str=new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date());
        str=type+str;
		return JSON.toJSONString(str);
	}
	


}

